/********** other **********/

html, body, ul, body > div {
    margin: 0;
    padding: 0;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
    transition: color .15s ease-in-out;
}

html, body {
	min-height: 100vh;
}
body {
    font-family: Helvetica Neue,PingFang SC,Helvetica,Arial,Hiragino Sans GB,
        Microsoft Yahei,\\5FAE\8F6F\96C5\9ED1,STHeiti,\\534E\6587\7EC6\9ED1,sans-serif;
    font-size: 14px;
    color: #666;
    background: #ededed;
}
body > div {
	display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}
body > div > main {
   	flex-grow: 1;
}

/********** header **********/

body > div > header {
	display: flex;
	padding: 2em 8em;
	background-color: black;
	align-items: center; 
}
body > div > header > span a {
	position: relative;
	display: inline-block;
	top: 0.3em;
	width: 3em;
	height: 3em;
	background: url('/img/icon/logo.png') -0.2em 0 no-repeat;
	background-size: 3.5em;
}
body > div > header > ul {
	display: flex;
	justify-content: center;
}
body > div > header > ul > li {
	margin-left: 3em;
}
#nav li:first-child a {
	color: white;
}
body > div > header > ul > li > a {
	color: #c8c8c8;
}
body > div > header > ul > li > a:hover {
	color: white;
}
#nav {
	flex-grow: 1;
}
#person > li {
	position: relative;
}
#person > li > a {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
}
#p-avatar {
	background: url('/img/icon/other.png') -8em -0.1em no-repeat;
	background-size: 20em 9.5em;
}
#p-avatar:hover {
	background: url('/img/icon/other.png') -0.5em -0.1em no-repeat;
	background-size: 20em 9.5em;
}
#shortcar {
	width: 2em !important;
	background: url('/img/icon/other.png') -7.8em -1.8em no-repeat;
	background-size: 20em 8.5em;
}
#shortcar:hover {
	background: url('/img/icon/other.png') -0.3em -1.8em no-repeat;
	background-size: 20em 8.5em;
}
#counter {
	display: inline-block;
	height: 1.5em;
	padding: .1em .5em;
	color: white;
	vertical-align: top;
	border-radius: 1em;
	background-image: linear-gradient(#a4a4a4,#909090);
    box-shadow: inset 0 0 1px #838383, 0 1px 2px #838383;
    text-align: center;
    line-height: 1.5em;
}
#p-info {
	position: absolute;
	right: -4.8em;
	display: flex;
	flex-direction: column;
	transition: all .15s ease-in-out;
	filter: opacity(0);
	z-index: -1;
}
#p-info > span {
	display: block;
	margin: 0 auto;
	width: 1.5em;
	height: 1.5em;
	background: url('/img/icon/other.png') -4.2em -3em no-repeat;
    background-size: 20em 9.5em;
}
#p-info > div {
	background-color: white;
	border-radius: .5em;
	overflow: hidden;
	border: 1px solid rgba(0,0,0,.08);
	box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
#p-info > div > figure {
	margin: 1em 4em;
	text-align: center;
}
#p-info > div > figure img {
	width: 3em;
	height: 3em;
	border-radius: 50%;
}
#p-info > div > figure figcaption {
	text-align: center;
	font-size: .8em;
	white-space: nowrap;
}
#p-info > div > ul > li a {
	display: block;
	padding: 1em 0;
	color: #616161;
	font-size: .8em;
	text-align: left;
	border-top: 1px solid #f5f5f5;
	transition: all .15s ease-in-out;
}
#p-info > div > ul > li a:hover {
	background: #eee;
}
#p-info > div > ul > li a:before {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	content: '';
	margin: 0 1em 0 2em;
    vertical-align: middle;
}
#p-info > div > ul > li:nth-of-type(1) a:before {
	background: url('/img/icon/other.png') 0 -3.9em no-repeat;
	background-size: 20em 9.5em;
}
#p-info > div > ul > li:nth-of-type(2) a:before {
	background: url('/img/icon/other.png') 0 -5.6em no-repeat;
	background-size: 20em 9.5em;
}
#p-info > div > ul > li:nth-of-type(3) a:before {
	margin: 0 1em 0 2.1em;
	background: url('/img/icon/other.png') -1.8em -5.6em no-repeat;
	background-size: 20em 9.5em;
}
#p-info > div > ul > li:nth-of-type(4) a:before {
	background: url('/img/icon/other.png') 0 -7.3em no-repeat;
	background-size: 20em 9.5em;
}

#p-shortcar {
	position: absolute;
	right: 0em;
	display: flex;
	flex-direction: column;
	transition: all .15s ease-in-out;
	filter: opacity(0);
	z-index: -1;
}
#p-shortcar > span {
	display: block;
	margin-left: 22em;
	width: 1.5em;
	height: 1.5em;
	background: url('/img/icon/other.png') -4.2em -3em no-repeat;
    background-size: 20em 9.5em;
}
#p-shortcar > div {
	background-color: white;
	border-radius: .5em;
	overflow: hidden;
	border: 1px solid rgba(0,0,0,.08);
	box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
#p-shortcar > div > figure {
	margin: 5em 5em;
	text-align: center;
}
#p-shortcar > div > figure figcaption {
	color: black;
	font-size: 1.2em;
}
#p-shortcar > div > ul {
	max-height: 60vh;
	overflow: scroll;
}
#p-shortcar > div > ul > li {
	position: relative;
	transition: all .15s ease-in-out;
	border-top: 1px solid #f0f0f0;
}
#p-shortcar > div > ul > li:first-child {
	border-top: none;
}
#p-shortcar > div > ul > li:hover {
	background: #eee;
}
#p-shortcar > div > ul > li > a > figure {
	display: flex;
	margin: 0;
	padding: 1em 1.5em;
	align-items: center;
}
#p-shortcar > div > ul > li > a > figure img {
	width: 6em;
	height: 6em;
	border: 1px solid #f0f0f0;
	background-color: white;
	border-radius: .2em;
}
#p-shortcar > div > ul > li > a > figure figcaption {
	margin-left: 1em;
	width: 15em;
}
#p-shortcar > div > ul > li > a > figure figcaption p {
	line-height: 1em;
	overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#p-shortcar > div > ul > li > a > figure figcaption p:first-child {
	color: black;
}
#p-shortcar > div > ul > li > a > figure figcaption p:nth-of-type(2) {
	color: #999;
}
#p-shortcar > div > ul > li > a > figure figcaption p:nth-of-type(3) {
	color: #d44d44;
	font-weight: 700;
}
#p-shortcar > div > ul > li > a > figure figcaption p:nth-of-type(3) > span {
	color: #cacaca;
}
#p-shortcar > div > ul > li > span {
	position: absolute;
	display: inline-block;
	top: 3.5em;
	right: 1em;
	width: 1.5em;
	height: 1.5em;
	background: url('/img/icon/other.png') -3.3em -4.5em no-repeat;
    background-size: 16em 8em;
    cursor: pointer;
}
#p-shortcar > div > ul > li > span:hover {
	background: url('/img/icon/other.png') -4.9em -4.5em no-repeat;
    background-size: 16em 8em;
}
#p-shortcar > div > aside {
	display: flex;
	padding: 0 1em;
	align-items: center;
	border-top: 1px solid #f0f0f0;
    box-shadow: inset 0 -1px 0 hsla(0,0%,100%,.5), 0 -3px 8px rgba(0,0,0,.04);
    background: linear-gradient(#fafafa,#f5f5f5);
    justify-content: space-between;
}
#p-shortcar > div > aside > div > p {
	line-height: 1em;
}
#p-shortcar > div > aside > div > p:first-child {
	font-size: .8em;
	color: #999;
}
#p-shortcar > div > aside > div > p > span {
	font-size: .8em;
	color: #de4037;
    font-weight: 700;
}
#p-shortcar > div > aside > div > p > span > span {
	font-size: 1.5em;
}
#p-shortcar > div > aside > a {
	padding: .5em 2em;
	color: #fff;
	border-radius: .3em;
	background: linear-gradient(#688fe8,#5079e1);
    border: 1px solid #5c81e3;
    box-shadow: inset 0 1px 0 hsla(0,0%,100%,.2),
    	0 1px 3px rgba(0,0,0,.2);
}
#p-shortcar > div > aside > a:hover {
	border: 1px solid #5374c8;
    background-image: linear-gradient(#6e8ed5,#4769c2);
}

/********** main **********/

main {
    padding: 3em 8em;
}

/********** addSuccess **********/

#addSuccess {
	position: fixed;
	display: inline-block;
	left: 45%;
	bottom: 2em;
	padding: .6em .8em;
	border-radius: .6em;
	background: linear-gradient(#f9ecc0,#f5dfa0);
    border: 1px solid #dcba67;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    transition: opacity .3s ease-out;
    color: #715821;
    filter: opacity(0);
}

/********** footer **********/

footer {
	padding: 1em 0;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #e6e6e6;
}

/********* tools **********/

.asideBg {
	background-color: #98afee;
	color: white;
}
.show {
	filter: opacity(1) !important;
	z-index: 1 !important;
}
.redQuantity {
    background-image: linear-gradient(#eb746b,#e25147) !important;
    box-shadow: inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 2px hsla(0,0%,100%,.15);
}
.showAddSuccess {
	filter: opacity(1) !important;
}